fix a bug in inode_extend_file