Letting Balthazar take the Nightsong is generally a bad idea, but it will let you get away without a fight. However, Shadowheart will permanently abandon you if you choose this option. If you want to kill Balthazar, it's best to do so before entering Shar's domain.