Pass _data->header to writeMagicNumberandVersionField()

Making this change in the OStream version of the constructor so that it
matches the const char * version. Otherwise we get a bug where files
made with an OStream won't get their version flags set properly.