Implicit and semi-implicit well-balanced finite-volume methods for systems of balance laws