docs: public boolean truncate(long size) {
      if (size >= this.size) {
        return false;
      }
  
      long lastPosition = size - 1;
      this.size = size;
  
      int newBlockCount = blockIndex(lastPosition) + 1;
      int blocksToRemove = blockCount - newBlockCount;
      if (blocksToRemove > 0) {
        disk.free(this, blocksToRemove);
      }
  
      return true;
    }