Wiring issues on ceiling light fixture
You've got a switch loop. Forget about the three black wires. Take the white wire from your fixture and connect it to your two white wires that are already grouped together. Take your black wire from the fixture and connect it to the single white wire. Mark that wire with some black electrical tape to show it's a switched hot. Mark the white wire in the switch box with some black tape too.