Write Inode function added to enable chmod

To enable chmod to alter permission for files