Magnetic properties of the finite-length biatomic chains in the framework of the single domain-wall approximation