Fix FS_unix.create and FS_unix.write

Would be good to have unit-tests for these at one point ...
it was already like that, I've just fixed the scope mess :-)