code: public Location write(byte[] data, WriteType write) throws ClosedJournalException, IOException {
          return write(data, write, Location.NoWriteCallback.INSTANCE);
      }
docs: Write the given byte buffer record, either sync (if
  {@code WriteType.SYNC}) or async (if {@code WriteType.ASYNC}), and
  returns the stored {@link Location}.<br/> A sync write causes all
  previously batched async writes to be synced too.
  
  @param data
  @param write
  @return
  @throws IOException
  @throws ClosedJournalException