[PATCH 4.14 110/195] kernfs: fix regression in kernfs_fop_write caused by wrong type