Minor fix to NBOWriter::write().