The Dallas Mavericks beat the Golden State Warriors for the second time this season as Dirk Nowitzki had 29 points, eight rebounds and six assists in a 121-99 win.