Bagley's big 2nd half leads No. 5 Duke past No. 9 UNC, 74-64-media-8