I this picture, you're holding the GROUND WIRE. (please don't try to connect it to the ballast in any way!)
Notice that the wire on the other side of the condenser is BLUE and connected to a Black/Blue wire coming out of the harness. NOTE: Nissan used BLACK wires WITH STRIPES for voltage! (Black/White B/W) = Battery voltage at IGN ON in all cases, Black/Yellow (BY) = Start Signal (battery voltage to starter solenoid) + bypass voltage to certain things at START, also Black/Blue (BL) and Black/Red (BR). None of these are grounds!)
Judging by the length of the black wire you are holding, that may go to a spade on the distributor. I would put a new female spade on the end of that wire personally.
(Edit: In the shop, I use Meguiars Hyper Dressing - which is an excellent cleaner and protectant (for all things vinyl, plastic, and rubber (and PVC wire insulation)) - to clean and rejuvenate exposed wiring coming out of the harness. Makes the harness look nice too. But the point would be to clean the wire so it's very easy to tell color and/or stripe.)