Model atmosphere analysis of the DZ white dwarf K789 - 37