Initial–boundary value problems for a system of hyperbolic balance laws arising from chemotaxis