fs: simplify the generic_write_sync prototype