fix several bugs in inode.c:

1. need to write inode->data back to disk when close inode.

2. need to call byte_to_sector after file extension