Implemented write-Method of MapSerializer