Fixed iDeviceFileStream flushing bug