Magnetic 3d Transition Metal Atomic Chains Modulated by the Intrinsic Valley Structure in MX Monolayer