file-posix: Move read/write operation logic out of aio_worker()