[added to the 4.1 stable tree] kernfs: fix regression in kernfs_fop_write caused by wrong type