I opened a channel with 10000 sats to node A.
My node has run as a router node so I sent 5000 sats to node A.
-snip-
When I close the channel by force, will I get back the total balance?
If not, do I have to communicate with the node operator and tell them to give me back the rest of sats?
What is the name of the lightning wallet that you've used?
Because based from the information provided, it looks like some feature of a custodial lightning wallet.
If we're talking about the standard lightning implementation,
force-closing it with 5000 sat local balance will result with 5000sat on-chain fund minus the fee, you'll loose the remote balance since it's the other party's funds.
Broadcasting an old state when the local balance is 10000sat is dangerous since it could lead to a penalty of losing all of your balance.