Distributed balanced color assignment on arbitrary networks