Barnes leads Mavs with 28 in road win