JStream::writeFile

Writes a chunk of data to a file.