check write permission in posix_fallocate
Merge pull request #1374 from inolen/posix_fallocate_fix

check write permission in posix_fallocate