Alistair Darling has pledged to rebuild the public finances once the current financial "shocks" are over.