611612613614615616617618619
if (i < blockCount) { long blockIndex = getDataBlockNr(i); //overwrite the block fs.writeBlock(blockIndex, data, false); } else { throw new UnallocatedBlockException("Block " + i + " not yet reserved " + "for the inode"); } }