Fixed permission assignment when creating a new inode. It was being set to mask instead of parent inode permissions.