Well technically, in that situation, the party should only get experience for Balor A. They 'overcame' the encounter with him, despite not killing him.
Now, let's say if Balor A summons Balor B and sends him off to interdict the party. It becomes a bit muddied. Especially if it results in a...