Did you refund as a separate transaction or did you refund from the original transaction?
When you look at your orders page if it says "partially refunded" then you cancel the order it should only refund the balance to the buyer.
If you refunded outside of the original transaction and you go to cancel then it will refund the full amount when you cancel.