aio: fix failure to put the file pointer