if you're very lucky, you might find a good used engine in a salvage yard.... beyond that, cost of repair exceeds value imho
if it has sentimental value, possibly buy a rebuilt long block: http://www.rockauto.com/en/catalog/toyota,1990,corolla,1.6l+l4,1275252,engine,long+block,5240