s3: make sys_posix_fallocate more generic