[FIX] Stream: added non-const char * write()

The non-chunked write() was chosen instead. This caused a slowdown when writing CharStrings to SmartFiles (e.g. parallel SAM output in Yara).