core: Use posix_fallocate() when writing objects

This helps ensure the filesystem allocates space efficiently.