is there any direct way to change patient balance to be insurance balance and the opposite? (by the system or database)
That need the code modification.
What do you mean? and how?
We need to touch the code of OpenEMR to do that there is no such feature that you replace the balance