Harrison Barnes leads Mavericks in win over Bucks