You have to slay the cursed dragon to claim your goblin gold. Everything else in the game is a stepping stone toward that fight.
Stock up before you go in, keep your strongest gear equipped, and do not waste your best attacks on the lesser enemies cluttering the path. Once the dragon is down, the gold is yours.