docs: public int write(long pos, byte b) throws IOException {
      prepareForWrite(pos, 1);
  
      byte[] block = blocks[blockIndex(pos)];
      int off = offsetInBlock(pos);
      block[off] = b;
  
      if (pos >= size) {
        size = pos + 1;
      }
  
      return 1;
    }