Hello,
There are two ways to do this, you can use KB11N to transfer cost from cost center of work center 1 to cost center of work center 2. Cost center to work center assignment is one is to one.
Second way I can think is to cancel the wrong confirmation, reverse all the goods movements done and then change in the order and do the process again.
Check the below link for difference between KB11N and KB15N,
https://scn.sap.com/thread/1149113
Hope this helps .
Best Regards,
Ameya B.