fix computation bugs in inode_extend_single