crankshaft pulley blew off.

i was wondering whether or not it would be sensible to swap the D15 i have to a B16. the crankshaft pulley ripped off while i was driving and im not sure if its as simple as just replacing it. if the motor has more damage than i can see, im going to need a new motor anyway right? but im just concerned about the cost of swapping the new motor vs. fixing the one i have now.
any opinions?
any opinions?