Ok, well you need a bigger tank but I'm not even going to get into that right now.
It's more than likely swim bladder. Shelled peas help, and goldfish eat almost anything, so yeah, put in a cooked shelled pea. It should pass whatever holdin' it up through!
If that doesn't help, there isn't much...