Dude the huge debts were undertaken to pay bankers debts to other bankers for them, not to pay pensions or give dole, you are the one who is confused.
the debts already existed, you are indeed confused - brief explanation
governments issue debt to run their affairs, sometimes(often) they need more money than they raise in taxes - this is called running at a deficit
the Greek government has been running at a deficit for some time and they have lots of debt as a result (as do lots of other governments, though not quite to the same extent)
this was previously owned by lots of European banks but as part of the deals with the troika some of the debt has been restructured and is now owned by some EU governments/institutions etc..
they could have defaulted on this debt previously - but this has nothing to do with what Iceland did which is where I think you've got yourself rather confused
Iceland had an issue in that Icelandic banks were massively over exposed and were left to fail - the Icelandic state itself wasn't massively in debt.
Greece couldn't have 'done an Iceland' as you put it as it is a rather different scenario.

