When you were sleeping, something touched your foot, so you dreamed that your foot was bitten.
As for security, black dog and white dog, these contents are all related to your childhood experience or the movies and TV you watched, which are pictures extracted from your memory by your brain.
Dreams are just manifestations of subconscious activities, so don't worry.