Linear perturbations of an anisotropic Bianchi I model with a uniform magnetic field