I had the same problem too, I looked around and found that it should be written like this without the space:
defaults write -gAppleLocale en_US
However, even after I did that i get a message saying:
Rep argument is not a dictionary
Defaults have not been changed.
Does anyone know how i can fix this?