FINANCIAL CONTAGION IN A STOCHASTIC BLOCK MODEL