updated aio2 method so that posix file is written out.