Question: pkhex how to save changes?
Answer: Right-Click a slot on the right and click "Set". You do not have to choose the same slot you loaded from if you don't want to. ... 
When you're finished editing your save data, export the save file by using File -> Export SAV... -> Export main.