Assuming that you bought/sold calls (which your post seems to indicate), you can respond to an exercise on your written option by simply exercising the option you bought, delivering the stocks, and keeping the difference in strike prices. Worst case, you buy the stocks to deliver them, then...