code: public boolean completeWrite()
    {
      int digest = (int) _crc.getValue();
  
      byte []headerBuffer = _headerBuffer;
      BitsUtil.writeInt16(headerBuffer, 0, 0);
      BitsUtil.writeInt(headerBuffer, 2, digest);
      
      writeImpl(headerBuffer, 0, 6);
      
      return true;
    }
docs: Completes a journal entry started by a write() call.