Search for small-mass black-hole dark matter with space-based gravitational wave detectors