I would not believe these armed blacks were Confederate troops. Rather, I suspect they were servants accompanying their masters, who took to arms on their own volition. I've seen a number of these instances.
Note Wiley Sword’s comment at:
http://civilwargazette.wordpress.com/2008/03/13/did-blacks-fight-in-combat-for-the-confederacy/