write to file -- idMap.txt