Fix fs interface

There was definitely some mistakes with fs interface:
fd is designed to be a number, not a string;
some callbacks formally are void functions;
synchronous read and write functions (don't confuse with fileWrite/Read) designed to return number of bytes read/written.