Write Inode function added to enable chmod