writeCard