Fix assigning an inode properly