Floyd helps White Sox beat Red Sox 4-1