Change sync fs calls to use assert style return values and errors

Start to #52
Would you also change https://github.com/luvit/luv/blob/master/src/fs.c#L64-L72 or just this one?