They spent their resources on the military because the whole capitalist world wanted to crush them. If they hadn't armed themselves to the teeth the western armies would have rolled right through after the end of WWII and later.
Do you have a citation that this was the general feeling in those countries, or only among those people mistreated by the Soviets?
The real straw that broke the camel's back was their dispute with China.