code: public void syncInMemorySize() throws IOException {
      if (finalizedSize == UNFINALIZED) {
        throw new IOException("Block is not finalized");
      }
      if (!inlineChecksum) {
        this.finalizedSize = blockDataFile.getFile().length();
      } else {
        this.finalizedSize = BlockInlineChecksumReader
            .getBlockSizeFromFileLength(blockDataFile.getFile().length(),
                checksumType, bytesPerChecksum);
      }
    }
docs: THIS METHOD IS ONLY CALLED BY UNIT TESTS to synchronize
  in memory size after directly calling truncateBlock()
  
  @throws IOException