check write permission in posix_fallocate

http://pubs.opengroup.org/onlinepubs/009696799/functions/posix_fallocate.html

Another small issue, but the test was failing on my vfs branch.