Virginia erased a seven-point fourth-quarter deficit to earn a 52-50 victory at Wake Forest.