Fix bug in writefat function

The readfat call returns 1 in case of success and 0 in case of failure.
writefat now correctly checks the return value of the call.

Change-Id: I95d09ec347ac5f2f751bb40a046f2567a1694422
1 file changed