Hi,
THere can be 2 options :
1. You can create a new account assignment reference and then adding this to correct cost centre. Then you can do a account assignment transfer. Going forward it will post to correct cost centre.
Alternatively you can also try a valuation class transfer with a different AAREF.
2. this option might be last resort, modify the accounting BadI and replace the cost centre value with correct one for that transaction number and the end date.
REgards,
NIkhil