write_distribution function

Write distribution component to TOML file