added code to create a file with inode