External Shocks, Balance Sheet Contagion, and Speculative Attack on the Pegged Exchange Rate System