To undo defaults write commands, you can simply run the corresponding defaults delete
defaults write
defaults delete